package com.chen.pfm.entity;

public class ReportForms implements Comparable<ReportForms> {
    String name;
    int n;

    public ReportForms(String name, int n) {
        this.name = name;
        this.n = n;
    }

    public ReportForms() {
    }

    @Override
    public String toString() {
        return "report{" +
                "name='" + name + '\'' +
                ", n=" + n +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getN() {
        return n;
    }

    public void setN(int n) {
        this.n = n;
    }

    @Override
    public int compareTo(ReportForms reportForms) {
        if (this.getN() < reportForms.getN()) {
            return 1;
        }
        if (this.getN() == reportForms.getN()) {
            return 0;
        }
        return -1;
    }
}
